This demo program shows how to export a movie, using the user dialog to customise export settings, import a media file and reference a media file in a movie.
This code shows how to : export a movie, reference a already existing media and import media.
This code shows how to export a movie, using the user dialog to customise export settings. There are two ways this can be done - by far the easiest way is to use the Movie.convertToFile call which will allow you to show the default progress proc for a movie to provide visual feedback to the user of the progress of the export. Otherwise the application can call the MovieExporter directly to export movie data and define their own custom progress handling
A reference to already existing movie is created by adding the resources of that movie to a new movie . The new movie as all the tracks and other timing information of the referenced movie.Shortcut movies are movies that just contain a reference to another movie, we create this by passing a a Data ref out of a URL that references the movie to the call createShortcutMovieFile. If the application wanted to remove the dependency it could flatten the existing movie.
The media import is done by the makeDrawable method will import graphics using the GraphicsImporter, and Movie.fromFile call for other media types
A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used.
QTSession.close is called after the program has finished exporting